package com.resou.reader.utils;

/**
 * 计算星座
 * Created by ${Garrett} on 2018/10/1.
 * Contact me krouky@outlook.com
 */
public class ConstellationUtils {

    public static String queryConstellation(int month, int day) {
        String name = "";
        if (month > 0 && month < 13 && day > 0 && day < 32) {
            if ((month == 3 && day > 20) || (month == 4 && day < 21)) {
                name = "白羊座";
            } else if ((month == 4 && day > 20) || (month == 5 && day < 21)) {
                name = "金牛座";
            } else if ((month == 5 && day > 20) || (month == 6 && day < 22)) {
                name = "双子座";
            } else if ((month == 6 && day > 21) || (month == 7 && day < 23)) {
                name = "巨蟹座";
            } else if ((month == 7 && day > 22) || (month == 8 && day < 23)) {
                name = "狮子座";
            } else if ((month == 8 && day > 22) || (month == 9 && day < 23)) {
                name = "处女座";
            } else if ((month == 9 && day > 22) || (month == 10 && day < 23)) {
                name = "天秤座";
            } else if ((month == 10 && day > 22) || (month == 11 && day < 22)) {
                name = "天蝎座";
            } else if ((month == 11 && day > 21) || (month == 12 && day < 22)) {
                name = "射手座";
            } else if ((month == 12 && day > 21) || (month == 1 && day < 20)) {
                name = "摩羯座";
            } else if ((month == 1 && day > 19) || (month == 2 && day < 19)) {
                name = "水瓶座";
            } else if ((month == 2 && day > 18) || (month == 3 && day < 21)) {
                name = "双鱼座";
            }
        }
        return name;
    }
}
